<!DOCTYPE html>
<html>
<head>
	<title>订单详情</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0"/>
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <link href="{G_TEMPLATES_CSS}/wx/comm.css" rel="stylesheet">
    <link href="{G_TEMPLATES_CSS}/wx/user.css" rel="stylesheet">
    <script src="{G_TEMPLATES_JS}/wx/jquery-2.1.4.min.js"></script>
    <style>
    	body{
			background:#f3f3f3;
			}
    </style>
  
</head>
<script>
	$(document).ready(function(e) {
		for(var i=0;i<2;i++){
			var str=$(".info-goods-name").eq(i).text();

			if(str.length>40){
				var newStr=str.substr(0,40)+"..."; 
				$(".info-goods-name").eq(i).text(newStr);
			}
		}
    });
</script>
<body>
     {wc:templates "mobile/index","header"} 
    <!--已揭晓-->
    {wc:if $itemlist[0]['q_uid']}
     <div class="order-info-main">
         <div class="info-goods" style="padding-bottom:10px;">
             <img src="{G_UPLOAD_PATH}/{wc:$itemlist[0]['thumb']}" class="info-goods-img">
             <span class="info-goods-name">（第{wc:$itemlist[0]['qishu']}期）{wc:$itemlist[0]['shopname']}</span><br />
             <div class="order-state" style="width:60px;height:25px;font-size:14px;line-height:23px;float:right;margin-right:15px;margin-top:20px;">{wc:$itemlist[0]['codeState']}</div>
             <div style="clear:both;"></div> 
         </div>

         <div class="order-info-list">
             <ul>
                 <li>
                     <span class="info-list-left">参与人数</span>
                     <span class="info-list-right" style="color:#909090">638人</span>
                 </li>

                 <li>
                     <span class="info-list-left">中奖者</span>
                     <span class="info-list-right" style="color:#909090">{wc:$getname['username']}</span>
                 </li>
                 
                  <li>
                     <span class="info-list-left">中奖号码</span>
                     <span class="info-list-right" style="color:#909090">100279</span>
                 </li>
                 
                 <li>
                     <span class="info-list-left">揭晓时间</span>
                     <span class="info-list-right" style="color:#909090">2016-07-07 10:03:34</span>
                 </li>

             </ul>
         </div>

         <div class="info-db-num">
             <div class="db-num-top">
                 <span class="info-list-left">夺宝号码</span>
                 <span class="info-list-right">共{wc:$itemlist[0]['gonumber']}人次</span>
             </div>
             <div class="info-db-number">
            	<ul>
                	<li><span>100279</span></li>
                	<li><span>100279</span></li>
                    <li><span>100279</span></li>
                    <li><span>100279</span></li>
                    <li><span>100279</span></li>
                    <li><span>100279</span></li>
                    <li><span>100279</span></li>
                    <li><span>100279</span></li>   
                    <div style="clear:both;"></div> 
                </ul>
            </div>

             <div class="info-db-go">
                 <a href="{WEB_PATH}/mobile/mobile">
                     <div class="db-go">
                         再次夺宝>>
                     </div>
                 </a>
             </div>
         </div>
     </div>
    {wc:else}
    <!--进行中-->
    <div class="order-info-main">
    	<div class="info-goods">
        	<img src="{G_UPLOAD_PATH}/{wc:$itemlist[0]['thumb']}" class="info-goods-img">
            <span class="info-goods-name">（第{wc:$itemlist[0]['qishu']}期）{wc:$itemlist[0]['shopname']}</span><br />
            <span class="font-red" style="font-size:18px;margin-left:15px;line-height:75px;">07:08:30</span>
            <div class="order-state" style="width:60px;height:25px;line-height:23px;font-size:14px;float:right;margin-right:5%;margin-top:25px;">{wc:$itemlist[0]['codeState']}</div>
        </div>
        
        <div class="order-info-list">
        	<ul>
            	<li>
                	<span class="info-list-left">参与人次</span>
                    <span class="info-list-right">{wc:$itemlist[0]['canyurenshu']}人次</span>
                </li>
                
                <li>
                	<span class="info-list-left">剩余人次</span>
                    <span class="info-list-right">{wc:$itemlist[0]['shenyurenshu']}人次</span>
                </li>
                
            </ul>
        </div>
        
        <div class="info-db-num">
        	<div class="db-num-top">
            	<span class="info-list-left">夺宝号码</span>
                <span class="info-list-right">共{wc:$itemlist[0]['gonumber']}人次</span>
            </div>

            <div class="info-db-number">
            	<ul>
                	<li><span>100279</span></li>
                	<li><span>100279</span></li>
                    <li><span>100279</span></li>
                    <li><span>100279</span></li>
                    <li><span>100279</span></li>
                    <li><span>100279</span></li>
                    <li><span>100279</span></li>
                    <li><span>100279</span></li>   
                    <div style="clear:both;"></div> 
                </ul>
            </div>
            <div class="info-db-go">
            	<a href="{WEB_PATH}/mobile/mobile/item/ {wc:$itemlist[0]['shopid']}">
            	<div class="db-go">
                	再次夺宝>>
                </div>
                </a>            
            </div>
        </div>	
    </div>
    {wc:if:end}
</body>
</html>
